package gestionColis;

/**
 * Interface definition : GestAdherent
 * 
 * @author OpenORB Compiler
 */
public class GestAdherentPOATie extends GestAdherentPOA
{

    //
    // Private reference to implementation object
    //
    private GestAdherentOperations _tie;

    //
    // Private reference to POA
    //
    private org.omg.PortableServer.POA _poa;

    /**
     * Constructor
     */
    public GestAdherentPOATie(GestAdherentOperations tieObject)
    {
        _tie = tieObject;
    }

    /**
     * Constructor
     */
    public GestAdherentPOATie(GestAdherentOperations tieObject, org.omg.PortableServer.POA poa)
    {
        _tie = tieObject;
        _poa = poa;
    }

    /**
     * Get the delegate
     */
    public GestAdherentOperations _delegate()
    {
        return _tie;
    }

    /**
     * Set the delegate
     */
    public void _delegate(GestAdherentOperations delegate_)
    {
        _tie = delegate_;
    }

    /**
     * _default_POA method
     */
    public org.omg.PortableServer.POA _default_POA()
    {
        if (_poa != null)
            return _poa;
        else
            return super._default_POA();
    }

    /**
     * Operation inscrireAdherent
     */
    public void inscrireAdherent(gestionColis.InfoAdherent adherent, gestionColis.Adherent adherentIOR)
        throws gestionColis.InfoAdherentInvalideException
    {
        _tie.inscrireAdherent( adherent,  adherentIOR);
    }

    /**
     * Operation notifierArriveeColis
     */
    public void notifierArriveeColis(gestionColis.InfoColis colis)
        throws gestionColis.AdherentInconnuException
    {
        _tie.notifierArriveeColis( colis);
    }

    /**
     * Operation adherentExiste
     */
    public String adherentExiste(gestionColis.InfoAdherent destinataire)
        throws gestionColis.AdherentInconnuException
    {
        return _tie.adherentExiste( destinataire);
    }

    /**
     * Operation enregistrerAdherent
     */
    public void enregistrerAdherent(gestionColis.Adherent adherent)
    {
        _tie.enregistrerAdherent( adherent);
    }

}
